package dao.impl;

import dao.ITradeDao;
import model.Trade;
import org.apache.ibatis.session.SqlSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

/**
 * @aythor:侯仪澳
 * @data:2022/8/5
 */
@Repository
public class TradeDao implements ITradeDao {
    @Autowired
    private SqlSession sqlSession;
    String url = "dao.ITradeDao.";

    @Override
    public int addOneTrade(Trade trade) {
        return sqlSession.insert(url + "addOneTrade",trade);
    }
}
